package com.qijia.travel.domain;

import java.lang.reflect.Method;

import com.qijia.travel.helper.ObjectHelper;

public class AgencyMission {

	private Integer agencyMissionId;
	private String agencyMissionSn;
	private String agencyMissionName;

	public Integer getAgencyMissionId() {
		return agencyMissionId==null?0:agencyMissionId;
	}

	public void setAgencyMissionId(Integer agencyMissionId) {
		this.agencyMissionId = agencyMissionId;
	}

	public String getAgencyMissionSn() {
		return agencyMissionSn;
	}

	public void setAgencyMissionSn(String agencyMissionSn) {
		this.agencyMissionSn = agencyMissionSn;
	}

	public String getAgencyMissionName() {
		return agencyMissionName;
	}

	public void setAgencyMissionName(String agencyMissionName) {
		this.agencyMissionName = agencyMissionName;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

}